package com.thering.movie_servers.movies.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.thering.movie_servers.movies.mapper.MovieMapper;
import com.thering.movie_servers.movies.pojo.Movie;
import com.thering.movie_servers.movies.service.MovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * author: the_ring
 * date: 2022/5/11
 * function: 实现类
 */
@Service
public class MovieServiceImpl extends ServiceImpl<MovieMapper, Movie> implements MovieService {

    @Autowired
    MovieMapper movieMapper;

    @Override
    public List<Movie> getMoviesByType(String type) {
        return movieMapper.Join(type);
    }
}
